package com.clouddot.baipai.util.ThreadPool;

public class ThreadPoolFactory {
    static ThreadPoolProxy mNormalPool;
    static ThreadPoolProxy mDownLoadPool;


    public static IThread getThread() {
        return ThreadPool.getInstance();
    }

    public static ThreadPoolProxy getDownLoadPool() {
        if (mDownLoadPool == null) {
            synchronized (ThreadPoolProxy.class) {
                if (mDownLoadPool == null) {
                    mDownLoadPool = new ThreadPoolProxy(3, 3, 3000);
                }
            }
        }
        return mDownLoadPool;
    }
}
